package com.daveclay.boilermaker

import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider
import com.google.inject._
import com.daveclay.boilermaker.web.providers.JacksonScalaContextResolver
import web.InitParamLookup


class BoilermakerModule(initParamLookup: InitParamLookup) extends AbstractModule {

    def configure() {
        bind(classOf[JacksonScalaContextResolver])
        bind(classOf[JacksonJaxbJsonProvider])
        bind(classOf[InitParamLookup]).toInstance(initParamLookup)
        bind(classOf[BoilermakerService])
    }
}